﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;
using System.Web;

namespace ExpenseSystem.Core.FiscalPeriodModules
{
    public abstract class FiscalPeriodManager : INormalManager<FiscalPeriodModel>
    {
        protected FiscalPeriodManager() { }
        public static FiscalPeriodManager CreateInstance()
        {
            return new FiscalPeriodBaseManager();
        }
        protected string tran = HttpContext.Current.Items[Definition.SESSION_TRAN_STR].ToString();


        protected NormalDataUpdater<FiscalPeriodModel> updater = new FiscalPeriodUpdaterRegister().GetFiscalPeriodUpdater();
        public  bool Delete(FiscalPeriodModel fp,  out string message)
        {
            throw new NotImplementedException();
        }
        public abstract bool Save(FiscalPeriodModel fp, out string message , params IAddable<FiscalPeriodModel>[] addables);

        public bool DeleteById(long[] idArray, out string message)
        {
            throw new NotImplementedException();
        }
    }
}
